package com.cn.web.user.vo;

import com.cn.empty.EmptyCheck;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

/**
 * description: PassRestEditDTO <br>
 * date: 21.12.17 11:17 <br>
 * author: cn_yaojin <br>
 * version: 1.0 <br>
 */
@Setter
@Getter
@Accessors(chain = true)
@ApiModel(value = "登录人修改密码")
public class PassRestEditDTO {

    @EmptyCheck(message = "密码格式错误，密码长度：6-16位", max = 16, min = 6)
    @ApiModelProperty(value = "旧密码")
    private String oldPass;

    @EmptyCheck(message = "密码格式错误，密码长度：6-16位", max = 16, min = 6)
    @ApiModelProperty(value = "新密码")
    private String newPass;


    @EmptyCheck(message = "密码格式错误，密码长度：6-16位", max = 16, min = 6)
    @ApiModelProperty(value = "确认密码")
    private String confirmPass;

}
